binstr = "1000000"

hex_str = hex(int(binstr,2))

# 打印16进制数
print(hex_str)